//
//  RCacheCellObj.h
//  SJMediaCacheServer_Example
//
//  Created by BlueDancer on 2021/5/13.
//  Copyright © 2021 changsanjiang@gmail.com. All rights reserved.
//
 
#import <SJMediaCacheServer/SJMediaCacheServer.h>
#import "RCacheTableViewCell.h"
#import "RCacheObj.h"

NS_ASSUME_NONNULL_BEGIN

@interface RCacheCellObj : NSObject

- (instancetype)initWithMedia:(RCacheObj *)media;

@property (nonatomic, copy, nullable) void(^selectedExecuteBlock)(RCacheCellObj *row, NSIndexPath *indexPath);

@property (nonatomic, strong, readonly) id<MCSAssetExporter> exporter;
@property (nonatomic, strong, readonly) RCacheObj *mediaObj;

- (void)bindCell:(RCacheTableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath;

- (void)unbindCell:(RCacheTableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath;

@end

NS_ASSUME_NONNULL_END
